<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
</body>
<script>

    const promiseFn = () => {
        return new Promise((reslove, reject) => {
            setTimeout(() => {
                reslove('success==')
            }, 3000)
        })
    }

    const fn1 = () => {
        return promiseFn().then(res => {
            console.log(res);
        })
    }
    let res = fn1()
    console.log(res);
</script>

</html>